<?php
error_reporting(0); 
$isadmin=1; 
include '../comm/config.php';
include '../comm/checkpostandget.php';
include 'check.php';
$link = mysql_connect($dbserver, $dbuser, $dbpass);
if (!$link) {
	die(ERR_DB);
}
else
{
	mysql_query("set names utf8");	
	mysql_select_db($dbname);
	$res=mysql_query("select VERSION()");
	$row=mysql_fetch_row($res);

}	
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>服务器信息</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body topmargin="5" leftmargin="0">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="282" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>
          <table cellspacing="0" width="100%" height="207" style="border:1px  solid #DCEAF7;">
            <tr>
              <td height="30" colspan="2" bgcolor="E9F2FB" class="bigtext"><strong>&nbsp;<img src="images/arrow.gif" width="16" height="22" align="absmiddle" /> 服务器信息</strong></td>
            </tr>
            <tr>
              <td width="100%" colspan="2" valign="top"><table width="100%" height="300" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td valign="top">
<br />
<table width="720"  align="center" border=1 cellpadding=0 cellspacing=0
style="border-collapse: collapse" bordercolor="#dddddd">
                      
					 
                      <tr>
                        <td width="174" height="30" align="right" class="bigtext">服务器时间：</td>
                        <td width="540" height="30" class="bigtext">&nbsp;<?php echo date('Y-m-d h:i:s');?></td>
                      </tr>
					   <tr>
                        <td height="30" align="right" class="bigtext">服务器域名：</td>
                        <td height="30">&nbsp;<?php echo $_SERVER['SERVER_NAME']; ?></td>
                      </tr>
					   <tr>
                        <td height="30" align="right" class="bigtext">服务器Port：</td>
                        <td height="30"><table width="455" height="30" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="190">&nbsp;<?php echo $_SERVER['SERVER_PORT']; ?></td>
  </tr>
</table></td>
                      </tr>
					  <tr>
                        <td height="30" align="right" class="bigtext">服务器总类：</td>
                        <td height="30"><table width="455" height="30" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="190">&nbsp;<?php echo @PHP_OS;?></td>
  </tr>
</table></td>
                      </tr>
					   <tr>
                        <td height="30" align="right" class="bigtext">服务器类型：</td>
                        <td height="30" class="bigtext">&nbsp;<?php echo $_SERVER['SERVER_SOFTWARE']; ?></td>
                      </tr>
					  </tr>
					   <tr>
                        <td height="30" align="right" class="bigtext">服务器目录：</td>
                        <td height="30" class="bigtext">&nbsp;<?php echo $_SERVER['DOCUMENT_ROOT']; ?></td>
                      </tr>
					 <tr>
                        <td height="30" align="right" class="bigtext">MYSQL版本号：</td>
                        <td height="30" class="bigtext">&nbsp;<?php print   $row["0"]; ?></td>
                      </tr>
                    </table>
                                    <br />
                  
                  </td>
                </tr>
              </table></td>
            </tr>
          </table></td>
        </tr>
      
    </table></td>
  </tr>
</table>
</body>
</html>